///////////////////////////////////////////////////////////////////
// Student name:Jon Hersack and Caleb Reinking
// Course: COSC 3403
// Assignment: #7 - Initial Software Construction
// File name:ComputerPlayer.java
// Purpose: Extends Player class and overrides executeTurn to provide
//          Computer player turn logic.
// Assumptions:none known
// Limitations:turn logic not yet implemented.
// Development Computer:Intel core2 duo 2.67Ghz
// Operating System: windows
// Integrated Development Environment (IDE): netbeans 6.5
// Compiler: Javac: java 1.6.0_13
///////////////////////////////////////////////////////////////////


public class ComputerPlayer extends Player
{


    ComputerPlayer()
    {
        playerHand = new Hand();
        humanControlled = false;
        name = "DefaultPlayerName";
    }

    ComputerPlayer( Boolean humanControl )
    {
        playerHand = new Hand();
        humanControlled = humanControl;
        name = "DefaultPlayerName";
    }

    //############################################
    @Override
    void executeTurn()
    {
        if( playerHand.indexOfCardByType("SAFETY") != -1 )
        {
            playCard( playerHand.indexOfCardByType("SAFETY") );
        }
        //stub computer turn logic
    }//end executeTurn


}//end class ComputerPlayer
